function log(type,data)
{$.ajax({type:"POST",url:"lib/scripts/log.php",data:"type="+type+"&data="+JSON.stringify(data),dataType:"json",processData:true,cache:false,success:function(data){}});}
function xml_log(network_y,action_y,target_y){log("social",{network:network_y,action:action_y,target:target_y});}